import datetime

from applications.extensions import db
# 消息推送实体
class Estimate(db.Model):
    __tablename__ = 'admin_estimate'
    id = db.Column(db.Integer, primary_key=True)
    kind = db.Column(db.String(20), nullable=False)
    type = db.Column(db.String(20), nullable=False)
    name = db.Column(db.String(20), nullable=False)
    work_score = db.Column(db.Float, nullable=False, default=0)
    process_score = db.Column(db.Float, nullable=False, default=0)
    staff_score = db.Column(db.Float, nullable=False, default=0)
    cal_result = db.Column(db.String(255), nullable=True)
    occur_time = db.Column(db.DateTime, default=datetime.datetime.now)
